Total Complexity | 1 |
Total Lines | 3 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | export class MultiplyByThreePipe { |
||
2 | async handle(value: number, next: (value: number) => Promise<number>): Promise<number> { |
||
3 | return next(value * 3); // Multiply by 3 and then pass to the next pipe |
||
4 | } |
||
5 | } |